/**
 * 审批模板主表 api 封装
 *
 * @Author:    AKITA
 * @Date:      2025-04-23 09:53:21
 * @Copyright  AKITA
 /*
 * @Description:
 * @Author: zhuoda
 * @Date: 2021-11-05
 * @LastEditTime: 2022-06-23
 * @LastEditors: zhuoda
 */
import { postRequest, getRequest } from '@/lib/smart-request';

export const apptemordApi = {
  queryPage: (param) => {
    return postRequest('/apptemord/queryPage', param);
  },

  add: (param) => {
    return postRequest('/apptemord/add', param);
  },

  update: (param) => {
    return postRequest('/apptemord/update', param);
  },

  delete: (id) => {
    return getRequest(`/apptemord/delete/${id}`);
  },

  batchDelete: (idList) => {
    return postRequest('/apptemord/batchDelete', idList);
  },
  info: (param) => {
    return getRequest('/apptemord/info/' + param);
  },
};

export const apptemordaApi = {
  queryPage: (param) => {
    return postRequest('/apptemorda/queryPage', param);
  },

  add: (param) => {
    return postRequest('/apptemorda/add', param);
  },

  update: (param) => {
    return postRequest('/apptemorda/update', param);
  },

  delete: (id) => {
    return getRequest(`/apptemorda/delete/${id}`);
  },

  batchDelete: (idList) => {
    return postRequest('/apptemorda/batchDelete', idList);
  },
};
